home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / CModalCheckboxes.h < prev    next >
Encoding:
Text File  |  1998-10-11  |  2.6 KB  |  95 lines  |  [TEXT/CWIE]

  1. // CModalCheckboxes.h -- dialog class
  2.  
  3. #pragma once
  4.  
  5. #include <LGADialog.h>
  6.  
  7. #include "DModalCheckboxesData.h"
  8.  
  9. class LStream;
  10.  
  11. class LPushButton;
  12. class LCheckBox;
  13. class LDisclosureTriangle;
  14. class LStaticText;
  15. class LTextGroupBox;
  16. class CCheckBox;
  17. class LToggleButton;
  18. class LBevelButton;
  19.  
  20.  
  21. //----------
  22. class CModalCheckboxes : public LGADialog {
  23. public:    // these comprise the programming interface for using the dialog
  24.     static    CModalCheckboxes*        CreateModalCheckboxes        (LCommander*    inSuperCommander,
  25.                                                  CommandT        inCommand,
  26.                                                  DModalCheckboxesData*        inData);
  27.     virtual void        SetFromData        (DModalCheckboxesData*        inData);
  28.     virtual DModalCheckboxesData*        GetData ();
  29.  
  30. // these functions will be obsoleted
  31. // retained only for backwards compatibility
  32.     virtual Boolean        GetStandardChoice();
  33.     virtual void        SetStandardChoice        (Boolean    inChoice);
  34.     virtual Boolean        GetXxChoice();
  35.     virtual void        SetXxChoice        (Boolean    inChoice);
  36.     virtual Boolean        GetLRChoice();
  37.     virtual void        SetLRChoice        (Boolean    inChoice);
  38.     virtual Boolean        GetLR2Choice();
  39.     virtual void        SetLR2Choice        (Boolean    inChoice);
  40.     virtual Boolean        GetLR3Choice();
  41.     virtual void        SetLR3Choice        (Boolean    inChoice);
  42.     virtual Boolean        GetLR4Choice();
  43.     virtual void        SetLR4Choice        (Boolean    inChoice);
  44.     virtual Boolean        GetCheckboxChoice();
  45.     virtual void        SetCheckboxChoice        (Boolean    inChoice);
  46.     virtual Boolean        GetCheckbox2Choice();
  47.     virtual void        SetCheckbox2Choice        (Boolean    inChoice);
  48.     virtual Boolean        GetNextChoice();
  49.     virtual void        SetNextChoice        (Boolean    inChoice);
  50.     virtual Boolean        GetNext2Choice();
  51.     virtual void        SetNext2Choice        (Boolean    inChoice);
  52.  
  53.  
  54. public:    // these comprise the implementation
  55.     enum { class_ID = 'Mod2' };
  56.  
  57.                         CModalCheckboxes        (LStream*    inStream);
  58.     virtual                ~CModalCheckboxes();
  59.  
  60.     virtual void        ListenToMessage        (MessageT    inMessage,
  61.                                              void        *ioParam);
  62.  
  63.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  64.                                              void        *ioParam = nil);
  65.     virtual void        FindCommandStatus    (CommandT    inCommand,
  66.                                              Boolean    &outEnabled,
  67.                                              Boolean    &outUsesMark,
  68.                                              Char16        &outMark,
  69.                                              Str255        outName);
  70.  
  71. protected:
  72.     static    void        RegisterClass();
  73.     virtual void        FinishCreateSelf();
  74.     virtual void        DataChanged        (long        inDataID);
  75.  
  76. protected:
  77.     static Boolean        sIsRegistered;
  78.     CommandT            mCommand;
  79.  
  80.     LPushButton*        mOKButton;
  81.     LCheckBox*        mStandardCheck;
  82.     LDisclosureTriangle*        mXxCheck;
  83.     CCheckBox*        mLRCheck;
  84.     CCheckBox*        mLR2Check;
  85.     LToggleButton*        mLR3Check;
  86.     LToggleButton*        mLR4Check;
  87.     CCheckBox*        mCheckboxCheck;
  88.     LBevelButton*        mCheckbox2Check;
  89.     LBevelButton*        mNextCheck;
  90.     LBevelButton*        mNext2Check;
  91.  
  92.     DModalCheckboxesData*        mData;
  93.  
  94. };
  95.